/**
 *
 */
package asa;

/**
 * @author José
 *
 */
public class LiteralStringExpr extends Expr {

	public LiteralStringExpr(String str) {
		this.str = str;
	}

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

    @Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
    	pw.print("\"" + str + "\"");
	}

	public void setStr(String str) {
		this.str = str;
	}

	public String getStr() {
		return str;
	}

	private String str;
}
